package demo;

/**
 * @Author liangbaigao
 * @Date 2023/9/24 22:52
 */
public class Lazy02 {
    private Lazy02(){}

    private static Lazy02 lazy;

    public static synchronized Lazy02 getInstance(){
        if (lazy == null){
            return lazy = new Lazy02();
        }
        return lazy;
    }
}
